import { ElLoading } from "element-plus";
/**
 * 加载
 */
let instance = null;
/**
 * 请求loading
 */
const loadon = {
  show() {
    instance = ElLoading.service();
  },
  hide() {
    if (instance !== null) {
      instance.close();
      instance = null;
    }
  },
};

export default loadon;
